//
//  ZXY_TabLawPage.m
//  LawProjection
//
//  Created by developer on 14-9-18.
//  Copyright (c) 2014年 duostec. All rights reserved.
//

#import "ZXY_TabLawPage.h"
#import "UIViewController+ZXY_VCCategory.h"
#import "ZXY_SearchLawerVC.h"
#import "ZXY_UserLoginVC.h"


@interface ZXY_TabLawPage ()

@end

@implementation ZXY_TabLawPage

- (void)viewDidLoad {
    [super viewDidLoad];
    [self initNavi];
    // Do any additional setup after loading the view.
}

- (void)initNavi
{
    [self setNaviBarImage:@"home_navi"];
    [self setNaviTitleImage:@"home_law"];
    [self setRightNaviItem:@"home_phone"];
}
- (IBAction)searchLawerAction:(id)sender
{
//    if([[UserInfoDetail sharedInstance] isUserLogin])
//    {
        [self performSegueWithIdentifier:@"toSearchLawVC" sender:self];
//    }
//    else
//    {
//        UIStoryboard *story = [UIStoryboard storyboardWithName:@"UserLoginRegist" bundle:nil];
//        ZXY_UserLoginVC *loginVC = [story instantiateViewControllerWithIdentifier:@"userLoginVC"];
////        loginVC.onComplete = ^(){
////            [self performSegueWithIdentifier:@"toSearchLawVC" sender:self];
////        };
//        [self.navigationController pushViewController:loginVC animated:YES];
//    }
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    
}


@end
